import { WorkflowNodeItem } from '.';

export interface ZeprideWorkflow {
    createTime?: number;
    id?: string;
    isDisable?: boolean;
    name?: string;
    paths?: WorkflowPath[];
    status?: string;
    updateTime?: number;
    workflowNodeItems?: WorkflowNodeItem[];
}

// export interface WorkflowNodeItem {
//     flowNode?: WorkflowNode;
//     flowNodeId?: string;
//     id?: string;
//     workflowId?: string;
//     name?: string;
// }

export interface WorkflowPath {
    createTime?: number;
    endNodeId?: string;
    headNodeId?: string;
    id?: string;
    name?: string;
    workflowId?: string;
    condition?: {
        id?: string;
        objectId?: string;
        objectType?: string;
        name?: string;
        sentence?: string;
    };
}

export interface WorkflowNode {
    beginTime?: number;
    endTime?: number;
    id?: string;
    name?: string;
    permitGroupName?: string;
    permitId?: string;
    permitName?: string;
    status?: string;
    type?: string;
    updateTime?: number;
    workflowId?: string;
}
